home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / SOX10DOS.ZIP / tests.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1993-10-04  |  1KB  |  32 lines

  1. #!/bin/sh
  2. # test files
  3. # SOX Test script.  This should run without core-dumping or printing any
  4. # messages.
  5. file=monkey
  6.  
  7. # verbose options
  8. # noise=-V
  9.  
  10. rm -f out.raw out2.raw in.raw 
  11. ./sox $noise $file.voc ub.raw 
  12. ./sox $noise -t raw -r 8196 -u -b -c 1 ub.raw -r 8196 -s -b sb.raw
  13. ./sox $noise -t raw -r 8196 -s -b -c 1 sb.raw -r 8196 -u -b ub2.raw
  14. ./sox $noise -r 8196 -u -b -c 1 ub2.raw -r 8196 ub2.voc 
  15. cmp -l ub.raw ub2.raw
  16. # skip checksum and rate byte
  17. cmp -l $file.voc ub2.voc | grep -v '^    2[3456]' | grep -v '^    31'
  18. rm -f ub.raw sb.raw ub2.raw ub2.voc
  19. ./sox $noise $file.au -u -r 8192 -u -b ub.raw
  20. ./sox $noise -r 8192 -u -b ub.raw -U -b ub.au 
  21. ./sox $noise ub.au -u ub2.raw 
  22. ./sox $noise ub.au -w ub2.sf
  23. rm -f ub.raw ub.au ub2.raw ub.sf ub2.sf
  24. #
  25. # Cmp -l of stop.raw and stop2.raw will show that most of the 
  26. # bytes are 1 apart.  This is quantization error.
  27. #
  28. # rm -f stop.raw stop2.raw stop2.au
  29. # Bytes 23 - 26 are the revision level of VOC file utilities and checksum.
  30. # We may use different ones than Sound Blaster utilities do.
  31. # We use 0/1 for the major/minor, SB uses that on the 1.15 utility disk.
  32.